<template>
  <el-dialog
    top="30px"
    width="700px"
    title="还款跟踪"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <after-repay ref="after" :query-id="queryId" @success="handleRepaySuccess"></after-repay>
  </el-dialog>
</template>

<script>
import AfterRepay from '@/credit/views/city/self/after/repay/Index'
export default {
  components: {
    AfterRepay,
  },
  props: {
    visible: Boolean,
    queryId: String,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    handleRepaySuccess() {
      this.$emit('success', true)
    },
    beforeClose() {
      this.$refs.after?.reSet()
      this.$emit('update:visible', false)
    },
  },
}
</script>

<style lang="scss" scoped></style>
